LayoutTreeSnapshot

data class LayoutTreeSnapshot(nodeIndex: List<Int>, styles: List<ArrayOfStrings>, bounds: List<Rectangle>, text: List<StringIndex>, stackingContexts: RareBooleanData, paintOrders: List<Int>?, offsetRects: List<Rectangle>?, scrollRects: List<Rectangle>?, clientRects: List<Rectangle>?)

Table of details of an element in the DOM tree with a LayoutObject.

Constructors

LayoutTreeSnapshot
Link copied to clipboard
fun LayoutTreeSnapshot(nodeIndex: List<Int>, styles: List<ArrayOfStrings>, bounds: List<Rectangle>, text: List<StringIndex>, stackingContexts: RareBooleanData, paintOrders: List<Int>? = null, offsetRects: List<Rectangle>? = null, scrollRects: List<Rectangle>? = null, clientRects: List<Rectangle>? = null)

Properties

bounds
Link copied to clipboard
val bounds: List<Rectangle>
The absolute position bounding box.
clientRects
Link copied to clipboard
val clientRects: List<Rectangle>? = null
The client rect of nodes.
nodeIndex
Link copied to clipboard
val nodeIndex: List<Int>
Index of the corresponding node in the NodeTreeSnapshot array returned by captureSnapshot.
offsetRects
Link copied to clipboard
val offsetRects: List<Rectangle>? = null
The offset rect of nodes.
paintOrders
Link copied to clipboard
val paintOrders: List<Int>? = null
Global paint order index, which is determined by the stacking order of the nodes.
scrollRects
Link copied to clipboard
val scrollRects: List<Rectangle>? = null
The scroll rect of nodes.
stackingContexts
Link copied to clipboard
val stackingContexts: RareBooleanData
Stacking context information.
styles
Link copied to clipboard
val styles: List<ArrayOfStrings>
Array of indexes specifying computed style strings, filtered according to the computedStyles parameter passed to captureSnapshot.
text
Link copied to clipboard
val text: List<StringIndex>
Contents of the LayoutText, if any.

Sources

jvm source
Link copied to clipboard